package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Role;
import cn.wolfcode.rbac.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    void save(Role record);

    void delete(Long id);

    void deleteRelation(@Param("id") Long id);

    void update(Role record);

    Role get(Long id);

    List<Role> listAll();

    /*int selectForCount(QueryObject qo);*/

    List<Role> selectForList(QueryObject qo);

    void insertRelation(@Param("id") Long id, Long permissionId);

}